<template>
	<div class="address-edit">
		<div class="header">
			 <span @click="$emit('close')">
                        <img src="../../assets/image/icon_arrow_left_black.png" alt="" />
                         </span>
			<span>收货地址</span>
		</div>
		<div class="footer">
			<div class="footer-nav">
				<div>
					<span>收货姓名</span>
					<span><input type="text" placeholder="请输入收货人名字" v-model="model.receiveName" /></span>
				</div>
				<div>
					<span>手机号码</span>
					<span><input type="text" placeholder="请输入收货人名字" v-model="model.receivePhone" /></span>
				</div>
				<div>
					<span>收货地址</span>
					<span><input type="text" placeholder="请输入省/市/区/街道" v-model="model.receiveRegion" /></span>
				</div>
				<div>
					<span>详细地址</span>
					<span><input type="text" placeholder="请输入街道地址" v-model="model.receiveDetail" /></span>
				</div>

			</div>
			<div class="save">
				<button @click="$emit('save', model)">保存</button>
			</div>
		</div>
	</div>
</template>

<script>
	export default{
	        name:"AddressEdit",
		data(){
	                return{
	                        model:{}
	                };
		},
		methods:{
		        beginEdit(model){
		                this.model={...model}
		        },
		}
	};
</script>
<style scoped>
	.header{
		height: 53px;
	}

	.header span img {
		width: 43px;
		height: 53px;
		vertical-align: -20px;
		line-height: 53px;
	}
	.header span:nth-child(2) {
		color: rgb(51, 51, 51);
		font-size: 18px;
		width: 285px;
		margin-left:135px ;
		line-height: 53px;
	}

	.address-edit{
		position: fixed;left: 0;
		top:0;width: 100vw;height: 100vh;
		background-color: #fff;
	}
	.footer{
		flex-grow: 1;
		display: flex;
		flex-direction: column;
	}
	.footer-nav {
		display: flex;
		flex-grow: 1;
		flex-direction: column;
	}
	.footer-nav div {
		height: 13.5vw;
		padding-right: 17px;
		padding-left: 8px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid #e6e6e6;
	}
	.footer-nav div span:first-child {
		font-size: 15px;
	}
	.footer-nav div span input{
		width: 74vw;
		height: 6vw;
		border: 0;
	}
	.save{
		margin-top: 406px;
		margin-left: 40px;
	}
	.save button{
		background-color: rgb(223, 46, 46);
		border-radius: 20px;
		width: 370px;
		height: 40px;
		border: 1px solid rgb(223, 46, 46);
		color: #fff;
		margin-left: -18px;
	}

</style>